- require 'coderay'
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="/css/mopTip-2.2.css">
<link rel="stylesheet" type="text/css" href="/css/jquery.contextMenu.css">
- file_path = @file.path
%a{:href => '/' + file_path[0, file_path.rindex('/')], :style => 'font-family: monospace;font-size: 12px'} Return..
%h3{:style => 'font-family: monospace;font-size: 12px'}= file_path[9, file_path.length] 
%hr
- if 'txt' == @ftype
  - if @fformat != nil
    - content = @file.read
    = CodeRay.scan(content, @fformat).div
  - else
    %pre
      - @file.each do |line|
        &= line
- elsif 'img' == @ftype
  %img{:src => '/proimg/' + file_path}
<div id="myMenu" style="display: none;">
<ul>
<li id="open" style="font-size: 12px; font-family: 'Bitstream Vera Sans Mono',monospace;">
<img src="/img/page_white_edit.png">呆！！！
</li>
</ul>
</div>
%p.content
<script language="javascript" src="/js/jquery-1.4.4.min.js"></script>
<script language="javascript" src="/js/jquery.contextmenu.r2.packed.js"></script>
<script language="javascript" src="/js/tsukkomi.js"></script>
%script{:language => 'javascript'}
  = @ts
